class FixOrganizations < ActiveRecord::Migration
  def self.up
    create_table "user_groups" do |t|
      t.column "user_id", :integer
      t.column "group_id", :integer
    end

    add_column :action_items, :group_id, :integer
    add_column :projects, :group_id, :integer
  end

  def self.down
    drop_table :user_groups

    remove_column :action_items,  :group_id
    remove_column :projects,  :group_id
  end
end
